fix(bindeps): default artifacts to package target#17076
Conversation
When an artifact dependency does not specify `target`, use the target selected for the dependency package. This lets packages that already declare an inherent per-package target avoid repeating that target on every artifact dependency edge. The fallback honors `forced-target`, applies `default-target` only when no command-line target was specified, and lets an explicit artifact dependency `target` win. Closes rust-lang#17050.
|
r? @ehuss rustbot has assigned @ehuss. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
I actually wonder if we should dramatically rework per-package-target to be like |
|
@epage Regardless of how per-package-target works, I'm now of the opinion that this behavior probably isn't desirable. Imagine two crates: |
When an artifact dependency does not specify
target, use the target selected for the dependency package. This lets packages that already declare an inherent per-package target avoid repeating that target on every artifact dependency edge.The fallback honors
forced-target, appliesdefault-targetonly when no command-line target was specified, and lets an explicit artifact dependencytargetwin.Closes #17050.